# -*- coding: utf-8 -*-
"""
-------------------------------------------------
   File Name：     day100_ftpServer
   Description :
   Author :       fuml
   date：          2019/9/19
-------------------------------------------------
   Change Activity:
                   2019/9/19:建立ftp服务器成功,但是文件夹的名字都是乱码,如何设置文件夹
                   名字的编码?
-------------------------------------------------
"""
from pyftpdlib.handlers import  FTPHandler
from pyftpdlib.servers import FTPServer
from pyftpdlib.authorizers import DummyAuthorizer

authorizer = DummyAuthorizer()
authorizer.add_user('python','123456',r'F:\fml\filegee_137797',perm='elradfmwM')
handler = FTPHandler
handler.authorizer=authorizer

server=FTPServer(('0.0.0.0',8888),handler)
server.serve_forever()
